#ifndef _IIC_H
#define _IIC_H

#include <STC15F2K60S2.H>
#include "intrins.h"

void IIC_Start(void); 
void IIC_Stop(void);  
bit IIC_WaitAck(void);  
void IIC_SendAck(bit ackbit); 
void IIC_SendByte(unsigned char byt); 
unsigned char IIC_RecByte(void); 
void AT24C20Writ(unsigned char addr,unsigned char dat);
unsigned char AT24C20Rread(unsigned char addr);
unsigned char ADC(unsigned char addr);
#endif